package cn.zjutleo.village_server.constants;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/8/15
 * @description: 正则表达式常量类
 */
public class RegexConstants {
    /**
     * Email正则表达式
     */
    public static final String EMAIL = "\\w+(\\.\\w+)*@\\w+(\\.\\w+)+";

    /**
     * 电话号码正则表达式
     */
    public static final String TELE = "(^(\\d{2,4}[-_－—]?)?\\d{3,8}([-_－—]?\\d{3,8})?([-_－—]?\\d{1,7})?$)|(^0?1[35]\\d{9}$)";

    /**
     * 手机号码正则表达式
     */
    public static final String MOBILE = "^1[3456789]\\d{9}$";
}
